<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../dist/vue.js"></script>
</head>
<body>
    <div id="app">
        <ul>
            <li v-for="(item,index) in items" :name="item.message">
                {{ parentMsg }} - {{ index }} - {{ item.message}}
            </li>
            <li v-for="(item,index) of items">
                {{ parentMsg }} - {{ index }} - {{ item.message}}
            </li>
            <input type="text" v-for="item in 3" :key="item">
        </ul>
    </div>
</body>
<script>
    var vm = new Vue({
        el: '#app',
        data: {
            parentMsg : '我是parent的内容',
            items: [
                { message: 'Foo' },
                { message: 'Bar' }
            ]
        }
    });
</script>
</html>